#ifndef __ITEM_ELEMENT_VIEW_H__
#define __ITEM_ELEMENT_VIEW_H__

#include "gofgame/common/ui/Container.h"
#include "gofgame/common/ui/Label.h"
#include "gofgame/common/ui/Image.h"
#include "gofgame/common/resource/HornedTextureBrushResource.h"
#include "gofgame/common/resource/TextureResource.h"
#include "gofgame/common/Ref.h"
#include "gofgame/dungeonkeeper/game/item/ItemManager.h"

namespace gofgame {
	namespace dungeonkeeper {
		namespace ui {

			using namespace gofgame::common::ui;
			using namespace gofgame::common::resource;
			using namespace gofgame::common;
			using namespace gofgame::dungeonkeeper::game::item;

			class ItemElementView : public Container {
			public:
				virtual bool init() _override;
				virtual ItemElementViewInfo getItemElementViewInfo() const;
				virtual void setItemElementViewInfo(const ItemElementViewInfo &ievi);

			protected:
				Ref<Image> image;
				Ref<Label> nameLabel;
				Ref<Label> descriptionLabel;
				Ref<Label> priceLabel;
				static HornedTextureBrushResource elementBrushResource;
				static TextureResource priceIconResource;
			};
		}
	}
}

#endif //__ITEM_ELEMENT_VIEW_H__
